<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        //IE不支持
        //插件遍历
        var pluginLength=navigator.plugins.length;
        for(var i=0;i<pluginLength;i++){
            document.write("<br/>插件名字："+navigator.plugins[i].name);
            document.write("<br/>文件名:"+navigator.plugins[i].filename);
            document.write("<br/>描 述："+navigator.plugins[i].description);
            document.write("<br/>")
        }

        document.write("=======<br/>");
        function hasPlugin(na){
            var pluginLength=navigator.plugins.length;
            for(var i=0;i<pluginLength;i++){
                if(navigator.plugins[i].name.toLowerCase().match(na.toLowerCase())){
                    return true;
                }

            }
        }
        document.write("是否支持Flash:"+hasPlugin('Flash'));
    </script>

</head>
<body>

</body>
</html>